// app.js
App({
  onLaunch() {
    this.getScreenMsg()
  },
  getScreenMsg() {
    const screen = wx.getSystemInfoSync()
    this.globalData.screenWidth = screen.screenWidth
    this.globalData.screenHeight = screen.screenHeight
    this.globalData.windowHeight = screen.windowHeight
    this.globalData.statusBarHeight = screen.statusBarHeight
  },
  globalData: {
    userInfo: null,
    // 屏幕宽度-高度
    screenWidth: 0,
    screenHeight: 0,
    windowHeight: 0,
    statusBarHeight: 0,
    
  }
})
